<div class="top_callFunc"><a class="btn r" href="{http_referer}">&lt; {lang.back}</a></div>
<div class="form"><form action="" method="post" id="fcontent" enctype="multipart/form-data" name="form1">
<!--BOX language_tab-->
<div class="language_tab"><!--BASIC language-->
<a href="#" onclick="showLangTab('{language.ln}',this);" {language.tab_default}>{language.ln_name}</a> <!--BASIC language--></div><!--BOX language_tab-->
  <div class="error">{msg}</div>
  <table width="100%" border="0" cellspacing="0" cellpadding="1" class="table-Form1">
<!--BASIC language-->
<tbody class="{language.default_ln} tab_language" id="tab_{language.ln}">
    <tr>
      <td width="16%">&nbsp;</td>
      <td width="84%">&nbsp;</td>
    </tr>
	{language.ln_fields}
    <tr class="hide {display_ln_icon}">
      <td>{ln_field_icon} {language.ln_alias} </td>
      <td><input name="ln_icon[{language.ln}]" class="no_width" type="file" id="ln_icon">
        
        {size_ln_icon}
		<p class="hide"><a href="{_UPLOAD}{language.ln_icon}" class="mb">{language.ln_icon}</a>
	    <input type="checkbox" name="delete_ln_icon[{language.ln}]" class="no_width" value="1" /> 
		<input name="current_ln_icon[{language.ln}]" type="hidden" value="{language.ln_icon}" title="{language.ln_icon}" class="box_delete_file" />
	    {lang.delete}		</p></td>
    </tr>
     <tr class="hide {display_ln_image}">
      <td>{ln_field_image} {language.ln_alias} </td>
      <td><input name="ln_image[{language.ln}]" class="no_width" type="file" id="ln_image">
        
        {size_ln_image}
		<p class="hide"><a href="{_UPLOAD}{language.ln_image}" class="mb">{language.ln_image}</a>
	    <input type="checkbox" name="delete_ln_image[{language.ln}]" class="no_width" value="1" />
		<input name="current_ln_image[{language.ln}]" type="hidden" value="{language.ln_image}" title="{language.ln_image}" class="box_delete_file" />
	    {lang.delete}</p></td>
    </tr>
   <tr class="sep">
      <td></td>
      <td></td>
    </tr></tbody>
<!--BASIC language-->
  </table>
  <table width="100%" border="0" cellspacing="0" cellpadding="1" class="table-Form1 {hide_no_languages}">
    <tr>
      <td width="16%">&nbsp;</td>
      <td width="84%">&nbsp;</td>
	</tr>
	{main_fields}
    <tr class="hide {display_enable_date}">
      <td>{lang.date}</td>
      <td class="input_date"><script type="text/javascript">DateInput('date', true, 'YYYY-MM-DD','{date}');</script></td>
    </tr>
    <tr class="hide {display_icon}">
      <td>{field_icon}</td>
      <td><input name="icon" class="no_width" type="file" id="icon">
        
        {size_icon}
		<p class="hide"><a href="{_UPLOAD}{icon}" class="mb">{icon}</a>
	    <input type="checkbox" name="delete_icon" class="no_width" value="1" />
		<input name="current_icon" type="hidden" value="{icon}" title="{icon}" class="box_delete_file" />
	    {lang.delete}</p></td>
    </tr>
    <tr class="hide {display_image}">
      <td>{field_image}</td>
      <td><input name="image" type="file" id="image" class="no_width">
        {size_image}
		<p class="hide">
		<a href="{_UPLOAD}{image}" class="mb">{image}</a> 
		<input type="checkbox" name="delete_image" class="no_width" value="1"  />
		<input name="current_image" type="hidden" title="{image}" value="{image}" class="box_delete_file" />
		  {lang.delete}</p></td>
    </tr>
  </table>
  <p>&nbsp;</p>
  <div class="{hide_no_languages}">
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="79%"><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr class="hide {display_gallery}">
            <td align="right"><span class="hide  {display_update}"><select name="back" id="back">
        <option value="1" {back_list_1}>{lang.back_to_list}</option>
        <option value="0" {back_list_0}>{lang.keep_me_here}</option>
        </select></span></td>
          </tr>
        </table></td>
        <td width="21%" align="right"><input type="submit" class="btn" name="Submit" value="{lang.save}"> <input type="button" class="btn btn_cancel" name="" value="{lang.cancel}" onClick="location.href='{http_referer}';"></td>
      </tr>
    </table>
    
  </div>
</form></div>
<script type="text/javascript">
	var opt = {
		required: [{required_fields}],
		required_lang: [{required_ln_fields}],
		lang: '{language}'
	};
	if({access_action} == '') opt['disabled'] = '{lang.user_no_access}';
	$('form#fcontent').validate(opt);

</script>